package run;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Administrator on 2017/5/22.
 */
public class Run {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/spring-context.xml");
        try {
            context.start();
            System.in.read();
        } catch (Exception e) {
            e.printStackTrace();
            context.close();
        } finally {
            context.close();
        }
    }
}
